package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.XxpkConfigurationsMapper;
import com.ruoyi.system.domain.XxpkConfigurations;
import com.ruoyi.system.service.IXxpkConfigurationsService;

/**
 * 系统配置信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-17
 */
@Service
public class XxpkConfigurationsServiceImpl implements IXxpkConfigurationsService 
{
    @Autowired
    private XxpkConfigurationsMapper xxpkConfigurationsMapper;

    /**
     * 查询系统配置信息
     * 
     * @param configId 系统配置信息主键
     * @return 系统配置信息
     */
    @Override
    public XxpkConfigurations selectXxpkConfigurationsByConfigId(Long configId)
    {
        return xxpkConfigurationsMapper.selectXxpkConfigurationsByConfigId(configId);
    }

    /**
     * 查询系统配置信息列表
     * 
     * @param xxpkConfigurations 系统配置信息
     * @return 系统配置信息
     */
    @Override
    public List<XxpkConfigurations> selectXxpkConfigurationsList(XxpkConfigurations xxpkConfigurations)
    {
        return xxpkConfigurationsMapper.selectXxpkConfigurationsList(xxpkConfigurations);
    }

    /**
     * 新增系统配置信息
     * 
     * @param xxpkConfigurations 系统配置信息
     * @return 结果
     */
    @Override
    public int insertXxpkConfigurations(XxpkConfigurations xxpkConfigurations)
    {
        return xxpkConfigurationsMapper.insertXxpkConfigurations(xxpkConfigurations);
    }

    /**
     * 修改系统配置信息
     * 
     * @param xxpkConfigurations 系统配置信息
     * @return 结果
     */
    @Override
    public int updateXxpkConfigurations(XxpkConfigurations xxpkConfigurations)
    {
        return xxpkConfigurationsMapper.updateXxpkConfigurations(xxpkConfigurations);
    }

    /**
     * 批量删除系统配置信息
     * 
     * @param configIds 需要删除的系统配置信息主键
     * @return 结果
     */
    @Override
    public int deleteXxpkConfigurationsByConfigIds(Long[] configIds)
    {
        return xxpkConfigurationsMapper.deleteXxpkConfigurationsByConfigIds(configIds);
    }

    /**
     * 删除系统配置信息信息
     * 
     * @param configId 系统配置信息主键
     * @return 结果
     */
    @Override
    public int deleteXxpkConfigurationsByConfigId(Long configId)
    {
        return xxpkConfigurationsMapper.deleteXxpkConfigurationsByConfigId(configId);
    }
}
